// 基于template/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IEditViewModel } from "@/core/interface/view/model";
function getModel(): IEditViewModel {
  return {
    caption: "编辑视图部件逻辑测试",
    title: "编辑视图部件逻辑测试",
    capPSLanguageRes: "DE.LNAME.IBIZBOOK",
    titlePSLanguageRes: "",
    showDataInfoBar: true,
    codeName: 'IBIZBOOKUsr0505531880EditView',
    uiEngineModel: [
                {
                    name: 'toolbar_deuiaction1_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'deuiaction1',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'Refresh',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_deuiaction2_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'deuiaction2',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'SaveAndExit',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_deuiaction3_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'deuiaction3',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: '2a555b30e4e8ebc1a541ba4821db2d9d',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_deuiaction4_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'deuiaction4',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'openDocument',
                    entityCodeName: 'IBIZBOOK',
                }
        ],
    ctrls: [
        {
            name: 'toolbar',
            codeName: 'Usr0505531880EditViewtoolbar',
            controlType: 'TOOLBAR',
        },
        {
            name: 'form',
            codeName: 'Formlogictest',
            controlType: 'FORM',
        }
    ],
    ctrlParams: {
        IBIZBOOKtoolbar: {},
        IBIZBOOKform: {},
    },
    cssName: "",
    name: "IBIZBOOKUsr0505531880EditView",
    viewType: "DEEDITVIEW",
    viewStyle: "DEFAULT",
    showCaption: true,
    isLoadDefault: true,
    entityCodeName: "IBIZBOOK",
    keyPSAppDEField: "IBIZBOOKId",
    majorPSAppDEField: "IBIZBOOKName",
    expandSearchForm:false,
    toolbarItems: [
        {
      		actionLevel: '100',
      		caption: '刷新',
      		captionLanResTag: '',
      		name: 'deuiaction1',
      		showCaption: true,
      		tooltip: '刷新',
      		tooltipLanResTag: '',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: '',
      		imagePath: '',
      		iconCls: 'fa fa-refresh',
              imagePathX: '',
      		dataAccessAction: '',
      		noPrivDisplayMode: 2,
      		uiAction: {
      			codeName: 'Refresh',
      			uIActionMode: 'SYS',
      			actionTarget: 'SINGLEKEY',
      			uIActionTag: 'Refresh',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_deuiaction1_click',
              	actionTag: 'Refresh',
              	xDataCtrlName: 'form',
              	predefinedType: 'EDITVIEW_REFRESHACTION',
              }
        },
        {
      		actionLevel: '100',
      		caption: '保存并关闭',
      		captionLanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDCLOSE',
      		name: 'deuiaction2',
      		showCaption: true,
      		tooltip: '保存并关闭',
      		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDCLOSE',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: '',
      		imagePath: '',
      		iconCls: 'sx-tb-saveandclose',
              imagePathX: '',
      		dataAccessAction: '',
      		noPrivDisplayMode: 2,
      		uiAction: {
      			codeName: 'SaveAndExit',
      			uIActionMode: 'SYS',
      			actionTarget: '',
      			uIActionTag: 'SaveAndExit',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_deuiaction2_click',
              	actionTag: 'SaveAndExit',
              	xDataCtrlName: 'form',
              	predefinedType: 'EDITVIEW_SAVEANDEXITACTION',
              }
        },
        {
      		actionLevel: '100',
      		caption: '其它',
      		captionLanResTag: 'TBB.TEXT.*.OTHER',
      		name: 'deuiaction3',
      		showCaption: true,
      		tooltip: '其它',
      		tooltipLanResTag: '',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: '',
      		dataAccessAction: '',
      		noPrivDisplayMode: 2,
      		uiAction: {
      			codeName: '编辑界面_其它操作',
      			uIActionMode: 'SYS',
      			actionTarget: '',
      			uIActionTag: '2a555b30e4e8ebc1a541ba4821db2d9d',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_deuiaction3_click',
              	actionTag: '2a555b30e4e8ebc1a541ba4821db2d9d',
              	xDataCtrlName: 'form',
              	predefinedType: 'EDITVIEW_OTHERACTION',
              }
        },
        {
      		actionLevel: '100',
      		caption: '打开文档',
      		captionLanResTag: '',
      		name: 'deuiaction4',
      		showCaption: true,
      		tooltip: '打开文档',
      		tooltipLanResTag: '',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: '',
      		dataAccessAction: 'OPEN_DOCUMENT',
      		noPrivDisplayMode: 1,
      		uiAction: {
      			codeName: 'openDocument',
      			uIActionMode: 'FRONT',
      			actionTarget: 'SINGLEKEY',
      			uIActionTag: 'openDocument',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_deuiaction4_click',
              	actionTag: 'openDocument',
              	xDataCtrlName: 'form',
              	actionDECodeName: 'IBIZBOOK',
              	predefinedType: '',
              }
        },
    ],
    toolbarLogics: [
        ]     ,
    xDataCtrlName: "form",
    quickSearchPlaceholder: ['图书名称',].join(","),
    useDefaultLayout: true,
  }
}
export const model = getModel();
